#include <iostream>
#include <string>
using namespace std;
class CStudent
{
	private:
		int id;
		string name;
		double english_score;
		double computer_score;
		double math_score;
	public:
		double sum()
		{
			return(english_score+computer_score+math_score);
		}
		double average()
		{
			return sum()/3;	
		}
		void print()
		{
			cout<<"id:"<<id<<endl;
			cout<<"name:"<<name<<endl;
			cout<<"english_score:"<< english_score<<endl;
			cout<<"computer_score:"<<computer_score<<endl;
			cout<<"math_score:"<<math_score<<endl;
			cout<<"sum:"<<sum()<<endl;
			cout<<"average:"<<average()<<endl;
		}
		int get_reg_num()
		{
			return id;
			
		}
		void  set_stu_inf(int A,string n,double e_,double c_,double m_)
		{
			id=A;
			name=n;
			english_score=e_;
			computer_score=c_;
			math_score=m_;
		}
};
int main()
{
	CStudent zyh;
	zyh.set_stu_inf(4,"张宇豪",85,90,75);
	zyh.print();
	return 0;
}
	